package com.jboom.templates.statemachine.java.statemachine;

/**
 * @author zhangwen
 * @date 2023/5/26 9:26
 */
public class TestCase {

    public static void main(String[] args) {
        AuditStateMachine stateMachine = new AuditStateMachine();
        State state = stateMachine.getNextState(State.COMMITTED, Event.LEADER_AUDIT);
        Action action = stateMachine.getAction(State.COMMITTED, Event.LEADER_AUDIT);
        System.out.println(state);
        System.out.println(action.action("审批单"));
    }
}
